---
import { Code } from '@astrojs/starlight/components';

const code = `
class Location {
  const Location({
    required this.id,
    required this.name,
    required this.latitude,
    required this.longitude,
  });

  final int id;
  final String name;
  final double latitude;
  final double longitude;
}
`;
---

<Code code={code} lang="dart" title="packages/open_meteo_api/lib/src/models/location.dart" />
